package com.niiwoo.activity.stage.dto.response.prize;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.List;

/**
 * Created by dengyunhui on 2017/11/24.
 */
@Setter
@Getter
public class BatchPublishRespDTO implements Serializable {

    private Byte result; // 0需要确认 1发布成功

    // 发布成功时取值
    private Integer successCount;
    private Integer failCount;
    private List<String> failReason;

    // 需要确认时取值
    private List<NeedCheckData> needCheckData;

    @Getter
    @Setter
    public static class NeedCheckData implements Serializable {

        private Long prizeSendPreId;
        private String realName;
        private String mobileNo;
        private String goodsName;
        private String goodsNameEver;
    }

    @AllArgsConstructor
    @Getter
    public enum ResultEnum {

        NEED_CONFIRM(Byte.valueOf("0"), "需要确认"),
        PUBLISH_SUCCESS(Byte.valueOf("1"), "1发布成功");

        private Byte code;
        private String desc;
    }
}
